package com.gopay.scheduler.job;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.gopay.scheduler.GopayBaseJob;
import com.gopay.scheduler.service.rclisting.RcListingRemoveDuplicateService;

/**
 * 黑灰名单定时去重任务
 * @RcListingDuplicateRemoveJob.java
 * @author liuyu
 * @2016年11月14日 下午2:00:00  www.gopay.com.cn Inc.All rights reserved.
 */
public class RcListingRemoveDuplicateJob extends GopayBaseJob {

    private Logger logger = LoggerFactory.getLogger(this.getClass());
    @Resource(name = "rcListingRemoveDuplicateService")
    private RcListingRemoveDuplicateService rcListingRemoveDuplicateService;

    @Override
    protected void doJobInternal() {
        try {
            logger.info("数据库个人/企业黑灰名单去重开始！");
            rcListingRemoveDuplicateService.removeDuplicate();
            logger.info("数据库个人/企业黑灰名单去重结束！");
        } catch (Exception e) {
            logger.error("去重过程出错！", e);
        }
    }


}
